<template>
  <div>
    <button @click="addmenFn">添加网红</button>
      <SonView></SonView>
  </div>
</template>

<script setup>
import SonView from './SonView.vue';
import { ref, provide } from 'vue';
const netredArr = ref(['拉面哥','大衣哥','giao哥'])
provide('abc', netredArr)

const addmenFn = () => {
  netredArr.value.push('凤姐')
}
</script>
<style scoped>

</style>